<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>
<body>
	<script>
	
	//批量生成实例对象
	function Person(name,age){
        this.name=name;
        this.age=age;
	
	
	}

	//  原型对象 

    Person.prototype.say=function() {
		console.log('xxx')
	}

	var p1=new Person('zs',19)
	var p2=new Person('zs2',19)
	var p3=new Person('zs2',19)

	console.log(p1.say===p2.say)
	console.log(p2.say===p3.say)
	p1.say()






 function say() {
	 console.log('xxx22')
 }


say()
	
	</script>
</body>
</html>